package com.ccc.orm;

import com.ccc.orm.entity.OrmModel;

import javax.persistence.Column;

/**
 * 继承OrmModel成为一个Model
 * 类说明 对应user表
 *
 * @author charry
 * @version 0.1
 * @since 2019/6/30 20:34
 */
public class User extends OrmModel<User> {

    private Long id;//主键名称约定为id,后期可以使用注解来标识
    @Column(name = "username")
    private String username;
    private Integer age;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}

